package com.atguigu.yygh.cmn.service;

import com.atguigu.yygh.model.cmn.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Auther: chao
 * @Date:2021/7/6-07-06-14:20
 * @Description:com.atguigu.yygh.cmn.service
 * @version:1.0
 */
public interface DictService extends IService<Dict> {
    /**
     * 导入
     * @param file
     */
    void importData(MultipartFile file);

    /**
     * 导出
     * @param response
     */
    void exportData(HttpServletResponse response);

    //根据数据id查询子数据列表
    List<Dict> findChildData(Long id);

    String getDictName(String dictCode, String value);

    List<Dict> findByDictCode(String dictCode);
}
